<?php

if (!defined('BASEPATH'))
	exit('No direct script access allowed');
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of model_config
 *
 * @author b4by
 */
class model_config extends MY_Model{
	var $table = 'config';
	public function get_list($input = array()) {
		//$this->db->cache_on();
		return parent::get_list($input);
	}

	public function update($data){
		foreach($data as $name=>$value)
		{
			$this->update_rule(array('name'=> $name), array('value'=> $value));
		}
	}
}

?>
